package com.cyy.common.pojo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

@Data
public class FriendLinkApplyReq implements Serializable {

    @Schema(description = "名称")
    @NotBlank(message = "name is required")
    private String name;

    @Schema(description = "简介")
    @NotBlank(message = "summary is required")
    private String summary;

    @Schema(description = "网站地址")
    @NotBlank(message = "url is required")
    private String url;

    @Schema(description = "头像")
    @NotBlank(message = "avatar is required")
    private String avatar;

    @Schema(description = "邮箱")
    @Email(message = "email is required")
    private String email;
}
